package com.szkingdom.kfit.bank.cmbc;

import com.szkingdom.kfit.bank.common.BankConstants;
import com.szkingdom.kfit.bank.common.listener.util.StartupConfigLoader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * @author Lijingyu on 2018/1/25.
 */
public class BankCMBCThirdTest {

    BankCMBCThird cmbcThird = new BankCMBCThird();

    @Before
    public void setUp() throws Exception {
        StartupConfigLoader.load();
        BankConstants.loadAllConfig();
    }

    @Test
    public void testMakeBindFile() throws Exception {
        List<Map> list = new ArrayList<Map>();

        Map<String, String> map = new HashMap<String, String>();
        map.put("account","0001");
        map.put("transactionaccountid","00002");
        map.put("priflag","01");
        map.put("idtype","1");
        map.put("bankflag","N");
        map.put("custname","lisi");
        map.put("souraccount","62234");
        map.put("bnkcode","0305");
        list.add(map);

        cmbcThird.makeBindFile(list);
    }
}